<?php $this->beginContent('//layouts/main'); ?>
<div class="container" style="padding-top:10px;padding-bottom:80px;">
	<div class="span-4" style="width:150px;position:relative;left:-5px;">
    <div class="mhome" style="text-align:center;position:relative;left:-20px;"><?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index'),'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Logout('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest))));?></div>
				<?php if(!Yii::app()->user->isGuest){ ?>
                <div style="border:2px solid #000000;width:150px;position:relative;top:-15px;">
    <div style="background-color:#002d5f;width:150px;height:25px;color:#fff;"><span style="margin-left:5px;position:relative;top:3px !important;">Manajemen Data</span></div>
	
    <div class="menua" align="center" style="margin-bottom:-12px;">
		<?php  $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				//array('label'=>'Home', 'url'=>array('/site/index')),
				// array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				// array('label'=>'Contact', 'url'=>array('/site/contact')),
				array('label'=>'Geografis', 'url'=>array('geografis/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Pemerintahan', 'url'=>array('pemerintahan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Kependudukan', 'url'=>array('penduduk/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Pendidikan', 'url'=>array('pendidikan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Kesehatan', 'url'=>array('kesehatan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Agama', 'url'=>array('agama/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Peradilan', 'url'=>array('peradilan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Pertanian', 'url'=>array('pertanian/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Industri', 'url'=>array('industri/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Listrikair', 'url'=>array('listrikair/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Perhubungan', 'url'=>array('perhubungan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Keuangan', 'url'=>array('keuangan/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Harga-Harga', 'url'=>array('harga/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Perhotelan', 'url'=>array('hotel/index'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'PDRB', 'url'=>array('produkdomestikregbruto/index'), 'visible'=>!Yii::app()->user->isGuest))
		)); ?></div></div>
         <?php }?></div>
	<div id="content" class="span-14" style="overflow:auto;width:620px !important;margin:0px 0px 0px 0px;">
    	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
		<?php echo $content; ?>
	</div>
	<div class="span-4" style="width:150px !important;position:relative;right:-21px;border:2px solid #000000;">
    <?php /*$this->widget('zii.widgets.jui.CJuiDatePicker',
	array(
		'name'=>'inline_datepicker',
		'flat' => true, // tells the widget to show the calendar inline
	)
);*///$this->widget('ext.simple-calendar.SimpleCalendarWidget'); ?>
<div style="width:150px;max-width:150px;">
<?php
require("fungsi_kalender.php");
$tgl_skrg=date("d");
$bln_skrg=date("n");
$thn_skrg=date("Y");
echo buatkalender($tgl_skrg,$bln_skrg,$thn_skrg);
?>
<!-- ending kalender -->
	</div>
</div></div>
<?php $this->endContent(); ?>
